// Global object variable
OpenHours = {};
OpenHours.dao = null;

function StageAssistant() {
};

StageAssistant.prototype.setup = function() {
	Mojo.Log.info("==================================================");
	Mojo.Log.info("Stage Assistant");
	Mojo.Log.info("StageAssistant.setup()");
	Mojo.Log.info("==================================================");
	
	OpenHours.dao = new Dao();
	OpenHours.dao.createEntriesTable();
	OpenHours.dao.insertSampleRecords();
	
	this.controller.pushScene("entries");
};

StageAssistant.prototype.handleCommand = function(event) {
	if (event.type == Mojo.Event.command) {
		switch (event.command) {
			case "do-edit":
				this.controller.pushScene("edit", 0);
				break;
		}
	}
};
